<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <WasmCopyAppZipToHelixTestDir>false</WasmCopyAppZipToHelixTestDir>
    <WasmAppDir>public</WasmAppDir>
  </PropertyGroup>

  <Target Name="InstallNpmPackage" AfterTargets="WasmBuildApp" DependsOnTargets="Build">
    <Exec Command="npm install" WorkingDirectory="$(MSBuildProjectDirectory)"/>
    <Exec Command="npm install $(MicrosoftNetCoreAppRuntimePackNativeDir) --no-save" WorkingDirectory="$(MSBuildProjectDirectory)"/>
  </Target>

  <Target Name="RunSample" DependsOnTargets="Build">
    <Exec Command="npm run dev" WorkingDirectory="$(MSBuildProjectDirectory)"/>
  </Target>

</Project>
